package com.shop.cereshop.agent.dao.search;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.commons.domain.agentSearch.CereAgentSearchHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereAgentSearchHistoryDAO extends BaseMapper<CereAgentSearchHistory> {
    CereAgentSearchHistory getSearchHistoryByUserId(@Param("userId") Long userId, @Param("searchName") String searchName);

    List<CereAgentSearchHistory> selectHistoryList(@Param("agentId") Long agentId);

//    逻辑删除
    Integer deleteHistory( @Param("historyId")List<Long> historyId, @Param("agentId") Long agentId);
}
